<template>
    <div>
      <h3 style="color:red;">编译作用域插槽 案例</h3>
      <slot :data="language" :language2="language2">
        <!--    <ul>
              <li v-for="item in language">{{item}}</li>
            </ul>-->
      </slot>
    </div>
</template>

<script>
    // 使用场景，，数据在子组件 父组件在使用子组件时，能够展示子组件中相同数据 不同的形态
    export default {
        name: "BY",
        data(){
          return{
              language:["java","go","c","c++","js"],
              language2:["java","go","123","xxx","xx"]
          }
        }
    }
</script>

<style scoped>

</style>
